import Vue from 'vue'
import VueRouter from 'vue-router'

import Login from '../views/Login.vue'
import Layout from '../views/Layout.vue'
import CcadNyjsSyj from '../views/CcadNyjsSyj.vue'
import CcadNjPpml from '../views/CcadNjPpml.vue'
import CcadFertBjba from '../views/CcadFertBjba.vue'
import CcadFertBjdj from '../views/CcadFertBjdj.vue'
import CcadPestReg from '../views/CcadPestReg.vue'
import CcadSeedApproval from '../views/CcadSeedApproval.vue'
import WeatherHistory from '../views/WeatherHistory.vue'
import CkbDiseaseManager from '../views/CkbDiseaseManager.vue'
import CkbPestManager from '../views/CkbPestManager.vue'
import WheatDiseaseImg from '../views/WheatDiseaseImg.vue'
import WheatPestImg from '../views/WheatPestImg.vue'

import MnssBch from '../views/MnssBch.vue'
import MnssJs from '../views/MnssJs.vue'
import MnssSf from '../views/MnssSf.vue'
import MnssTrsq from '../views/MnssTrsq.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Login',
    component: Login,
  },
  {
    path: '/Layout',
    name: 'Layout',
    // redirect: 'CcadNyjsSyj',
    component: Layout,
    children: [
      {
        path: '/CcadNyjsSyj',
        name: 'CcadNyjsSyj',
        component: CcadNyjsSyj
      },
      {
        path: '/CcadNjPpml',
        name: 'CcadNjPpml',
        component: CcadNjPpml
      },
      {
        path: '/CcadFertBjba',
        name: 'CcadFertBjba',
        component: CcadFertBjba
      },
      {
        path: '/CcadFertBjdj',
        name: 'CcadFertBjdj',
        component: CcadFertBjdj
      },
      {
        path: '/CcadPestReg',
        name: 'CcadPestReg',
        component: CcadPestReg
      },
      {
        path: '/CcadSeedApproval',
        name: 'CcadSeedApproval',
        component: CcadSeedApproval
      },
      {
        path: '/WeatherHistory',
        name: 'WeatherHistory',
        component: WeatherHistory
      },
      {
        path: '/CkbDiseaseManager',
        name: 'CkbDiseaseManager',
        component: CkbDiseaseManager
      },
      {
        path: '/WheatDiseaseImg',
        name: 'WheatDiseaseImg',
        component: WheatDiseaseImg
      },
      {
        path: '/WheatPestImg',
        name: 'WheatPestImg',
        component: WheatPestImg
      },
      {
        path: '/CkbPestManager',
        name: 'CkbPestManager',
        component: CkbPestManager
      },
      {
        path: '/MnssBch',
        name: 'MnssBch',
        component: MnssBch
      },
      {
        path: '/MnssJs',
        name: 'MnssJs',
        component: MnssJs
      },
      {
        path: '/MnssSf',
        name: 'MnssSf',
        component: MnssSf
      },
      {
        path: '/MnssTrsq',
        name: 'MnssTrsq',
        component: MnssTrsq
      }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
